package com.gite.nouette.admin.implementation.data;

import java.util.Date;

import com.gite.nouette.admin.contract.data.ILog;
import com.gite.nouette.admin.contract.service.IVisitorData;

public class Log implements ILog {
	private Integer id;
	private String message;
	private Date timestamp;
	private String username;

	@Override
	public Integer getId() {
		return id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String getMessage() {
		return message;
	}

	@Override
	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public Date getTimestamp() {
		return timestamp;
	}

	@Override
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	@Override
	public String getUsername() {
		return username;
	}

	@Override
	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public void accept(IVisitorData visitor) {
		visitor.visitLog(this);
	}

}
